<template>
<div class="mlogMain">
  <div class="studentSituation-header">导师日志</div>
  <!-- 日志总览 -->
  <div class="mlmOverview">
    <div class="mlmSum">
      <div style="color: #666;">本学期日志数量</div>
      <div>
        <span style="color: #3352A5;font-size: 32px;font-weight: 900;">{{ 8 }}</span>
        <span style="color: #666;margin-left: 10px;">篇</span>
      </div>
    </div>
    <div class="mlmSum">
      <div style="color: #666;">最近会议</div>
      <div>{{ '2025-06-15' }}</div>
      <div style="color: #666;">学期末学业规划</div>
    </div>
  </div>
  <!-- 日志标题栏 -->
  <div class="mlmTitle">
    <h2>本学期日志</h2>
    <div>
      <el-date-picker
          v-model="month"
          type="month"
          placeholder="Pick a month"
          style="margin-right: 20px;"
        />
      <el-button type="primary" style="border-radius: 8px;background: #3352A5;" @click="toUpdate()">上传新日志</el-button>
    </div>
  </div>
  <!-- 日志列表 -->
  <div>
    <div class="mlmbox">
      <img src="../../../assets/image/exa.png" alt="" height="100%">
      <div class="mlmContent">
        <h4>{{ '2024-2025学年期末学业规划会议' }}</h4>
        <div>{{ '2025-06-15' }}</div>
        <div style="color: #666;">{{ '讨论了学生期末复习计划，针对不同学生制定了个性化学习方案，强调了考试纪律和诚信教育。' }}</div>
        <div style="width: 100%;text-align: right;">
          <el-button type="primary" style="background: #B5BBD8;color: #2845C8;border: 0;" @click="toMLData()">查看详情</el-button>
        </div>
      </div>
    </div>
  </div>

</div>
</template>

<script setup>
import router from '@/router';
import { ElDatePicker } from 'element-plus';
import { ref } from 'vue';

const month = ref('2025-11')

const toMLData = () => {
  router.push('/mentor/mentorLog/mlogDetail')
}
const toUpdate = () => {
  router.push('/mentor/mentorLog/mlogUpdate')
}
</script>

<style scoped lang="scss">
.mlogMain {
  width: 100%;
  height: 100%;
  background-color: #f0f2f5;
  .studentSituation-header {
    width: 100%;
    height: 8vh;
    display: flex;
    align-items: center;
    padding-left: 60px;
    border-top: 1px solid #c9c9ca;
    border-bottom: 1px solid #c9c9ca;
    background-color: #fff;
    font-size: 20px;
    font-weight: 600;
  }
  // 日志总览
  .mlmOverview {
    width: 100%;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    .mlmSum {
      width: 40%;
      height: 120px;
      background-color: #fff;
      padding: 20px;
      border-radius: 8px;
      box-shadow: 0 2px 8px rgba($color: #000000, $alpha: 0.1);
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }
  }
  //日志标题行
  .mlmTitle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    height: 50px;
    margin: auto;
    // padding: 0 20px;
  }
  // 日志列表
  .mlmbox {
    display: flex;
    width: 90%;
    height: 165px;
    margin: 10px auto;
    justify-content: center;
    align-items: flex-start;
    border-radius: 8px;
    background: #FFF;
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.10);
    img {
      width: 200px;
      margin: auto;
      height: 100%;
      border-radius: 8px 0 0 8px;
    }
    .mlmContent {
      width: 100%;
      height: 100%;
      box-sizing: border-box;
      padding-left: 25px;
      padding-right: 15px;
      display: flex;
      flex-direction: column;
      justify-content: space-evenly;
    }
  }

}
</style>